package com.csi.mapper;

import com.csi.domain.Audit;
import com.csi.domain.Employee;
import com.csi.domain.Hotel;
import com.csi.domain.Role;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface AuditMapper {

    int update(Audit audit);

    String selectStatus(long hotelId);

    @MapKey("id")
    Map<String, Object> findAuditHotel(String auditStatus);

    Map<String, Object> findAuditHotelId(long id);

    @MapKey("id")
    Map<String, Object> findAuditFranchise(String auditStatus);

    Map<String, Object> findAuditFranchiseId(long franchiseId);

    @MapKey("id")
    Map<String, Object> findRoomType(@Param("auditStatus") String auditStatus, @Param("peopleNum") int peopleNum);


    Map<String, Object> findRoomTypeId(long roomTypeId);

    Hotel selectHotel(long auditId);

    String selectFranchiseStatus(long franchiseId);




    //根据酒店加盟查询酒店信息
    Hotel selectHotel4Franchise(long auditId);

    int insertRole(Role role);

    int generateEmployee(Employee employee);

    String selectRoomTypeStatus(long roomTypeId);


}
